package com.ruoyi.performance.domain.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.utils.bean.BeanUtils;
import com.ruoyi.performance.domain.SillPerformance;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GetListRo extends BaseEntity {
    /** 编号 */
    private Long id;

    /** 姓名 */

    private String sillPerformanceName;

    /** 工号 */

    private String sillPerformanceNum;

    /** 签订年月 */

    private String sillPerformanceDate;

    /** 开始时间 */

    @JsonFormat(pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */

    @JsonFormat(pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 合同单号 */

    private String sillPerformanceContract;

    /** 项目名称 */

    private String sillPerformanceProject;

    /** 签订金额 */

    private Long sillPerformanceMoney;
    public  static SillPerformance RotoSillPerformance (GetListRo ro){
        SillPerformance sillPerformance = new SillPerformance();
        BeanUtils.copyProperties(ro,sillPerformance);
        return sillPerformance;
    }
}
